package com.api.shopapi.service.impl;

import com.api.shopapi.entity.CheckinAssessItem;
import com.api.shopapi.mapper.CheckinAssessItemMapper;
import com.api.shopapi.service.CheckinAssessItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author maochuan
 */
@Service("CheckinAssessItemServiceImplOne")
public class CheckinAssessItemServiceImpl implements CheckinAssessItemService {
    @Autowired
    private CheckinAssessItemMapper checkinAssessItemMapper;

    @Override
    public int insert(CheckinAssessItem checkinAssessItem) {
        return checkinAssessItemMapper.insert(checkinAssessItem);
    }

    @Override
    public int updateByCheckinAssessItemCode(CheckinAssessItem checkinAssessItem) {
        return checkinAssessItemMapper.updateByCheckinAssessItemCode(checkinAssessItem);
    }

    @Override
    public int deleteByCheckinAssessItemCode(String checkinAssessItemCode) {
        return checkinAssessItemMapper.deleteByCheckinAssessItemCode(checkinAssessItemCode);
    }

    @Override
    public List<CheckinAssessItem> getListAll() {
        return checkinAssessItemMapper.getListAll();
    }

    @Override
    public CheckinAssessItem getByCheckinAssessItemCode(String checkinAssessItemCode) {
        return checkinAssessItemMapper.getByCheckinAssessItemCode(checkinAssessItemCode);
    }

    @Override
    public CheckinAssessItem getByCheckinAssessGroupCodeAndName(String checkinAssessGroupCode, String name) {
        return checkinAssessItemMapper.getByCheckinAssessGroupCodeAndName(checkinAssessGroupCode,name);
    }

    @Override
    public List<CheckinAssessItem> getByCheckinAssessGroupCode(String checkinAssessGroupCode) {
        return checkinAssessItemMapper.getByCheckinAssessGroupCode(checkinAssessGroupCode);
    }

    @Override
    public int deleteByCheckinAssessGroupCode(String checkinAssessGroupCode) {
        return checkinAssessItemMapper.deleteByCheckinAssessGroupCode(checkinAssessGroupCode);
    }
}
